﻿@model zichan.Models.CreateAuthModel
@{
    ViewBag.Title = "授权添加";
}

@section Pagetitle{
    @AdminCommon.PageTitle("授权管理", "添加授权")
}


@using (Html.BeginForm("CreateAuth", "staff", FormMethod.Post, new { @class = "form-horizontal" }))
{
    <div class="form-body">
        @Html.HiddenFor(o => o.StaffId)
        @Html.AntiForgeryToken()

        <div class="form-group">
            <label class="col-md-3 control-label">角色名称:</label>
            <div class="col-md-9">
                @Html.DropDownList("RoleId", (SelectList)ViewBag.Roles, "角色", new { @class = "form-control input-large" })
                <span class="help-block">
                    @Html.ValidationMessage("RoleId")
                </span>
            </div>
        </div>

        <div class="form-actions">
            <div class="row">
                <div class="col-md-offset-3 col-md-9">
                    <button type="submit" class="btn green">提交</button>
                </div>
            </div>
        </div>
    </div>
}


@section footer{
    @Scripts.Render("~/bundles/jqueryval")
}

